package com.csap.framework.apidoc.example.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.annotation.apidoc.Group;
import com.csap.framework.annotation.apidoc.Request;
import com.csap.framework.annotation.apidoc.Response;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Set;

/**
 * @author yangchengfu
 * @description 示例模型
 * @dataTime 2021年-01月-26日 14:46:00
 **/
@Data
@ApiModel(value = "示例")
public class ExampleModel {
    @ApiModelProperty(value = "名称", groups = {
            @Group(value = "validate", request = @Request(required = true), response = @Response)
    })
    @NotEmpty(message = "名称不能空")
    private Set<String> name;

    @ApiModelProperty(value = "示例列表", forceReq = true, required = true)
    @NotEmpty(message = "列表不能为空s")
    private List<ExampleListModel> exampleLists;
    @ApiModelProperty(value = "示例列表", forceReq = true)
    @NotNull(message = "对象不能为空2")
    private ExampleListModel3 exampleListModel3;
}
